local skynet = require "skynet"

skynet.start(function()
    --第一个参数是启动的服务，第二个参数是给该服务的标志
    skynet.newservice("store")
    skynet.newservice("producer")
    skynet.sleep(5)

    local goods = skynet.call(".store", "lua", "get_goods")
    skynet.error("start get playerId :", goods.playerId)
	skynet.error("start get name :", goods.name)
	goods.playerId = 220005
	goods.name = "mhk"

    -- local goods = {playerId = 11102, name = "mhl"}
    skynet.send(".store", "lua", "produce")
    skynet.error("start show playerId :", goods.playerId)
	skynet.error("start show name :", goods.name)
end)
